
	**************** 
	** Prep Africa Shapefiles
	****************

		shp2dta using "$dir/rawdata/Africa_Boundaries/Africa_Boundaries", ///
			data("$dir/data/Africa_Boundaries_data.dta") coord("$dir/data/Africa_Boundaries_coord.dta") genid(country_id) gencentroids(cc) replace

		use "$dir/data/Africa_Boundaries_data.dta", clear
		ren NAME_0 countryregion
		
			** drop islands from map
			drop if countryregion=="French Southern Territories"
		
		drop OBJECTID ISO Continent REgion
		save "$dir/data/Africa_Boundaries_data.dta", replace
		
		merge 1:1 countryregion using "$dir/data/population_projections_selectcountries.dta", keep(master matched) gen(merge)
			
		tempfile data
		save `data', replace
		
		gen labtype=1 
		append using `data'
		replace labtype = 2 if labtype==.
		
		gen label=countryregion if merge==3 & labtype==1
		
		gen sharessapop_total_2020_string=round(sharessapop_total_2020*100,1)
		tostring sharessapop_total_2020_string, replace
		replace sharessapop_total_2020_string=" ("+sharessapop_total_2020_string+"%)"
		replace label=sharessapop_total_2020_string if merge==3 & labtype==2
		
		keep country_id	x_cc y_cc countryregion label labtype
		
		save "$dir/data/Africa_Boundaries_data_labels.dta", replace
		